package com.ququ.syb.business.channel.mongo;

import com.ququ.syb.common.pojo.PayChannel;
import org.bson.types.ObjectId;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PayChannelDao extends MongoRepository<PayChannel,ObjectId> {
    PayChannel findPayChannelByPaychannelid(String paychannelid);
    List<PayChannel> findAllByStatus(Integer status, Sort sort);
    List<PayChannel> findPayChannelsByStatusAndIsAutoClear(Integer status, Integer isautoclear);
}
